<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>分类设置</title>
</head>
<style>
    .label-text-line{
        position: relative;
        display: inline-block;
        vertical-align: middle;
        float: left;
        margin-right: 10px;
    }
    .label-text-line-padding{
        padding: 7px 0px;
    }
    .my-skin .layui-layer-btn .layui-layer-btn0 {
        background-color: #009688;
        color: #fff;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        white-space: nowrap;
        text-align: center;
        cursor: pointer;
    }
    .my-skin .layui-layer-btn{
        text-align: center;
    }
</style>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        <span>后台产品&nbsp;&nbsp;/&nbsp;</span>
        <a lay-href="/service/tariff/list.action">价格表管理&nbsp;&nbsp;</a>/&nbsp;
        <span>复制价格表</span>
    </blockquote>

    <div class="layui-card" style="min-height: 600px">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <div class="layui-form-item">
                <label class="layui-form-label">【温馨提示】</label>
                <div class="label-text-line label-text-line-padding">
                    产品的A套价格表需要复制B套价格表，A套价格表称为原价格表，B套价格表称为被复制价格表
                </div>
            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    1、A套价格表和B套价格表的保内/保外、价格表类型、定价价方式都必须相同；只能复制通用产品的价格表
                </div>
            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    2、复制价格表会复制对应的服务分类+一级分类下的项目分组、项目和产品价格表（除产品价格表的是否默认、价格表状态特
                </div>

            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    殊处理，其他都需复制）；若当前价格表在复制范围内，已有项目分组、项目和产品价格表，则会被清空已有数据
                </div>
            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    3、复制产品价格表时注意：
                </div>
            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    （1）原价格表和被复制价格表都有产品价格表时，除产品价格表的是否默认、价格表状态之外，其他都需复制；
                </div>
            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    （2）原价格表没有产品价格表，被复制价格表有产品价格表，除产品价格表的是否默认、价格表状态设置为初始状态，其他都需复制
                </div>
            </div>
            <div class="layui-form-item">
                <div class="label-text-line">
                    <label class="layui-form-label"></label>
                    （3）原价格表没有产品价格表，被复制价格表没有产品价格表，原价格表没有产品价格表会被清空
                </div>
            </div>
            <div class="layui-split" style="height: 50px;">&nbsp;</div>
            <div class="layui-form-item" style="margin-bottom: 30px;">
                <label class="layui-form-label  layui-form-required">原价格表:</label>
                <div class="layui-input-inline" style="width:300px">
                    <select name="organTariffId" lay-verify="required" id="organTariffId"
                            lay-filter="organTariffId" lay-search>
                        <option value=""></option>
                        <option th:each="tariff:${organTariffs}"  th:value="${tariff.tariffId}" th:text="${tariff.tariffName}">
                        </option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item" style="margin-bottom: 30px;">
                <label class="layui-form-label layui-form-required">被复制的价格表:</label>
                <div class="layui-input-inline" style="width:300px">
                    <select id="newTariffId" name="newTariffId" lay-filter="newTariffId" lay-search  lay-verify="required">
                        <option value=""></option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item" style="margin-bottom: 30px;">
                <label class="layui-form-label layui-form-required">复制范围：</label>
                <div class="layui-input-inline" style="width:300px">
                    <select lay-filter="servCategId" id="servCategId" name="servCategId" lay-search lay-verify="required">
                        <option value=""></option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width:300px">
                    <select id="categOneId" name="categOneId" lay-filter="categOneId" lay-search>
                        <option value=""></option>
                    </select>
                </div>
            </div>



            <div class="layui-split" style="margin-bottom: 150px">&nbsp;</div>
            <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">确认复制</button>
                    <button class="layui-btn layui-btn-primary" id="cancleBtn">
                        取消
                    </button>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        serv_service_tariff_copy: "service/tariff/zmn.service.tariff.copy",
    }).use(['index', 'serv_service_tariff_copy']);
</script>
</body>
</html>